package cloud.maque.conf;

import cloud.maque.conf.auth.JwtProperties;
import cloud.maque.conf.common.CommonProperties;
import cloud.maque.conf.gateway.GatewayProperties;
import cloud.maque.conf.oauth2.Oauth2Properties;
import cloud.maque.conf.swagger.SwaggerProperties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

/**
 * 平台整体配置
 */
@Data
@ConfigurationProperties(prefix = "maque")
public class MaqueProperties {

    @NestedConfigurationProperty
    private CommonProperties common = new CommonProperties();

    @NestedConfigurationProperty
    private JwtProperties jwt = new JwtProperties();

    @NestedConfigurationProperty
    private GatewayProperties gateway = new GatewayProperties();

    @NestedConfigurationProperty
    Oauth2Properties oauth2 = new Oauth2Properties();

    @NestedConfigurationProperty
    SwaggerProperties swagger = new SwaggerProperties();
} 